 $(document).ready(function() {
	
	$('.portailSortable').sortable({
		items : 'div',
		axis: 'y',
		containment: 'parent',
		tolerance: 'pointer',
		stop: function(event,ui){ portailSort(); }
	});
});
 
 function portailSort() {
	a=document.getElementById('contenus');
	a.value='';
	$('.portailSortable').find('div').each(function(){
		a.value+=$(this).find('.nom').attr('id')+'|';
	});
	$.post('ajaxload.php', { page: 'modules/portail/admin/ajax.php', action: 'portailContenus', contenus: a.value });
}